package org.hxzon.nioserver;

import java.nio.ByteBuffer;
import java.nio.channels.ByteChannel;
import java.io.IOException;

public interface OutputQueue {
    boolean isEmpty();

    void drainTo(ByteChannel channel) throws IOException;

    boolean enqueue(ByteBuffer byteBuffer);
}
